import axios from 'axios'

const request = axios.create({
    //baseURL: "https://falselove.icu",
    //baseURL: "http://127.0.0.1:5173",
    timeout: 5000
})
request.interceptors.request.use(
    config => {
        config.headers['Content-Type'] = "application/x-www-form-urlencoded"
        return config
    }
)

request.interceptors.response.use(
    response => {
        const res = response.data
        return res
    }
)

export default request